/**
 * @param {number[]} temperatures
 * @return {number[]}
 * @description 暴力
 */

var dailyTemperatures = function (temperatures) {
    let len = temperatures.length
    let ans = new Array(len).fill(0)
    for (let i = 0; i < len - 1; i++) {
        for (let j = i + 1; j < len; j++) {
            if (temperatures[i] < temperatures[j]) {
                ans[i] = j - i
                break
            }
        }
    }
    return ans
};

console.log(dailyTemperatures([73, 74, 75, 71, 69, 72, 76, 73]))
